-- GENERATED SPELL FOR [Glasshide Gazer] --


function spell0_5420(pUnit, Event) --@Crystal Gaze,n/a--
pUnit:FullCastSpellOnTarget(3635,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5420', 8000, 1)
end

function Sorts_5420(pUnit, Event)
local choix_sorts_5420 = math.random(0, 0)
if choix_sorts_5420 == 0 then
pUnit:RegisterEvent('spell0_5420', 1, 1)
end
end

function mob5420_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5420', math.random(1500, 3000), 1)
end

function mob5420_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5420_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5420_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5420, 1, 'mob5420_Action')
RegisterUnitEvent(5420, 2, 'mob5420_Leave')
RegisterUnitEvent(5420, 3, 'mob5420_Kill')
RegisterUnitEvent(5420, 4, 'mob5420_Die')
